/**
 * 
 */
package com.cipe.cmrs.model;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @author krishna
 *
 */
@Entity
@Table(name="actionablealerts")
public class ActionableAlert extends BaseAuditEntity {
	private static final long serialVersionUID = -9131123475211645555L;
	@Column
	String module;
	@Column
	String type;
	@OneToMany(cascade=CascadeType.ALL,mappedBy="actionableAlert",fetch=FetchType.EAGER)
	List<ActionableAlertsMessage> actionableAlertMessages=new ArrayList<ActionableAlertsMessage>();
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public List<ActionableAlertsMessage> getActionableAlertMessages() {
		return actionableAlertMessages;
	}
	public void setActionableAlertMessages(List<ActionableAlertsMessage> actionableAlertMessages) {
		this.actionableAlertMessages = actionableAlertMessages;
	}
	

}
